/********************************************************************************
 * Copyright (c)2016-2020, ShenZhen WanJiaAn Technology CO.,LTD.
 * All Rights Reserved.
 *
 * File Name     : UartDev.h
 * Author        : joki.zhu
 * Date          : 2019-11-18
 *
 * Record        :
 * 1.Date        : 2019-11-18
 *   Author      : joki.zhu
 *   Modification: Created file
 ********************************************************************************/

#ifndef __MCU_UPDATE_DEV_H__
#define __MCU_UPDATE_DEV_H__

#include "av_type.h"

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

typedef int (*UartDevRecvCallback)(AV_U8 * pBuf, AV_U32 u32Len);

int UartDevInit(UartDevRecvCallback pRecvCallback);
int UartDevSendBuf(AV_U8 *pBuf, AV_U32 bufLen);
int UartDevDeinit(void);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */


#endif /* __MCU_UPDATE_DEV_H__ */


